#include"include.h"

int main()
{
   bitfield_t *b = bitfieldInit(120);
   printf("Starts out with 100=%d\n", bitfieldGet(b, 100));
   bitfieldSet(b, 100, 1);
   printf("Set 100. Is now %d\n", bitfieldGet(b,100));
   bitfieldPrint(b);
   bitfieldSet(b, 101, 1);
   printf("Set 101. Is now %d\n", bitfieldGet(b,101));
   bitfieldPrint(b);
   bitfieldSet(b, 100, 0);
   printf("Unset 100. Is now %d\n", bitfieldGet(b,100));
   bitfieldPrint(b);



   return 0;
}
